{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "9c835c57",
   "metadata": {},
   "outputs": [],
   "source": [
    "# This is the code from the “vsearch.py” module, which contains our two functions:“search4vowels” and “search4letters”\n",
    "\n",
    "def search4vowels(phrase: str) -> set:\n",
    "    \"\"\"Returns the set of vowels found in 'phrase'.\"\"\"\n",
    "    return set('aeiou').intersection(set(phrase))\n",
    "\n",
    "def search4letters(phrase: str, letters: str='aeiou') -> set:\n",
    "    \"\"\"Returns the set of 'letters' found in 'phrase'.\"\"\"\n",
    "    return set(letters).intersection(set(phrase))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "3cd5a363",
   "metadata": {},
   "outputs": [],
   "source": [
    "# This is the “setup.py” file, which allowed us to turn our module into an installable distribution.\n",
    "\n",
    "from setuptools import setup\n",
    "\n",
    "setup(\n",
    "    name='vsearch',\n",
    "    version='1.0',\n",
    "    description='The Head First Python Search Tools',\n",
    "    author='HF Python 2e',\n",
    "    author_email='hfpy2e@gmail.com',\n",
    "    url='headfirstlabs.com',\n",
    "    py_modules=['vsearch'],\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "e4e2e0b6",
   "metadata": {},
   "outputs": [],
   "source": [
    "# And this is the “mystery.py”module, which had Tom and Sarah upset at each other. Thankfully, now that the mystery is solved, they are back to being programming buddies once more. §\n",
    "\n",
    "def double(arg):\n",
    "    print('Before: ', arg)\n",
    "    arg = arg * 2\n",
    "    print('After: ', arg)\n",
    "    \n",
    "def change(arg: list):\n",
    "    print('Before: ', arg)\n",
    "    arg.append('More data')\n",
    "    print('After: ', arg)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "a9a0b53a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
